home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / programr / appsrcs.zip / APPPRINT.ZIP / APPTOOLS.C < prev    next >
C/C++ Source or Header  |  1993-02-01  |  736b  |  20 lines

  1. #define STRICT
  2. #include <windows.h>
  3. #include <windowsx.h>
  4. #include <stdio.h>
  5. #include "appprint.h"
  6.  
  7. /*----------------------------------------------------------------------------*/
  8. /* FUNCTION: OkMsgBox(char *szCaption, char *szFormat, ...)             */
  9. /*                                                                            */
  10. /* PURPOSE:  Display in an OKmessageBox a given text                       */
  11. /*----------------------------------------------------------------------------*/
  12. VOID OkMsgBox(char *szCaption, char *szFormat, ...)
  13.     {
  14.     char *pArguments;
  15.  
  16.     pArguments = (char *) &szFormat + sizeof(szFormat);
  17.     vsprintf(szBuffer, szFormat, pArguments);
  18.     MessageBox(NULL, szBuffer, szCaption, MB_OK);
  19.     }
  20.